<extend name="Public/base"/>
<block name="head">
    <link rel="stylesheet" href="__PUBLIC__/dist/css/bootstrapValidator.css"/>
    <link href="__PUBLIC__/dist/css/default.css" rel="stylesheet" type="text/css" />
</block>
<block name="body">
    <section class="content">

        <h4 class="modal-title" id="editModalLabel">
            编辑用户信息
        </h4>

        <form role="form" action="__URL__/update" method="post" id="nodeForm">
            <div class="box-body">

                <div class="form-group">
                    <label>模块名：</label>
                    <input type="text" class="form-control required"   name="name" value="{$vo['name']}">
                    <input type="hidden" class="form-control"  name="id" value="{$vo['id']}">
                </div>

                <div class="form-group">
                    <label>显示名：</label>
                    <input type="text" class="required form-control"  name="title" value="{$vo['title']}">
                </div>
                <div class="form-group">
                    <label>分 组：</label>
                    <select name="group_id" class="form-control">
                        <option value="">未分组</option>
                        <volist name="list" id="group">
                            <option value="{$group['id']}" <eq name="group.id" value="$vo['group_id']">selected</eq>>{$group['title']}</option>
                        </volist>
                    </select>
                </div>
                <div class="form-group">
                    <label>排序：</label>
                    <input type="text" class="required form-control"  name="sort" id="sort" value="{$vo['sort']}" size="5" />
                </div>
                <div class="form-group">
                    <label>状态：</label>
                    <select name="status" class="form-control required">
                        <option <eq name="vo.status" value="1" >selected</eq> value="1">启用</option>
                        <option <eq name="vo.status" value="0" >selected</eq> value="0">禁用</option>
                    </select>
                </div>

                <div class="form-group">
                    <label>描 述：</label>
                    <textarea name="remark"  rows="3" cols="57" class="form-control">{$vo.remark}</textarea>
                </div>

            </div><!-- /.box-body -->

            <div class="box-footer">
                <button type="submit" class="btn btn-primary">Submit</button>
            </div>
        </form>


    </section>
</block>

<block name="script">
    <script src="__PUBLIC__/dist/js/bootstrapValidator.js" type="text/javascript"></script>
    <script src="__PUBLIC__/dist/js/language/zh_CN.js" type="text/javascript"></script>
    <script src="__PUBLIC__/dist/js/validator.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            Validator('nodeForm');
            iniAjaxFormDetail('#nodeForm','__URL__/Index/pid/1');
        });
    </script>
</block>


